import { Modal as AntModal } from "antd";
import { useModalDragMove } from "../hooks/useModalDrag";
// import { extendSlots } from "@/utils/helper/tsxHelper";
import { BasicPropsType } from "../props";

// interface ComponentProps {
// 	slots: SlotsComponent;
// }

const Modal = (props: BasicPropsType) => {
	const { open, draggable, destroyOnClose } = props;

	useModalDragMove({
		open,
		destroyOnClose,
		draggable
	});

	const onCancel = () => {};
	const propsData = { ...props, onCancel } as Recordable;

	return <AntModal {...propsData}></AntModal>;
};
export default Modal;
